{# Author : Brice VICO et Hovannes Genjoyan #}

{% extends "::layout.html.twig" %}
{% block title %}
Ajout d'une soutenance - {{ parent() }}
{% endblock %}

{% block body %}
    <div class="container" style="margin-top :25px;">
    {% if afficherFlash %}
        <div class="alert alert-success">{{flash}}</div>
    {% endif %}
        <h3>Ajout de la soutenance pour le projet {{projet.titre}}</h3>

        <form method="post" action="{{path('site_projet_soutenance_ajouter', {'id' : projet.id})}}">
            <div class="form-group">
                <label>Date de la soutenance :</label>
                <input type="date" class="form-control" name="date" required />
            </div>
            <div class="form-group">
                <label>Heure de la soutenance :</label>
                <input type="time" class="form-control" name="heure" required />
            </div>
            <div class="form-group">
                <label>Salle :</label>
                <input type="text" class="form-control" name="salle" required />
            </div>
            <div class="form-group">
                {{form_errors(form.jury)}}
                <label>Jury 1 :</label>
                {{form_widget(form.jury)}}
            </div>
            <div class="form-group">
                {{form_errors(form.jure2)}}
                <label>Jury 2 :</label>
                {{form_widget(form.jure2)}}
            </div>
            {{form_rest(form)}}
            <button type="submit"class="btn btn-success">Ajouter ou modifier la soutenance</button>
        </form>
    </div>
{% endblock %}
